<%inherit file="../base.mako"/>
<risks href="${h.url_for('risks')}">
% for risk in c.risks:
	<%
	exposition = ''
	if risk.impact is not None and risk.probability is not None:
		exposition = risk.impact * risk.probability
	%>
	<risk href="${h.url_for('risk', id=risk.id)}">
		<id>${risk.id}</id>
		<name>${risk.name}</name>
		<description>${risk.description}</description>
		<impact>${risk.impact}</impact>
		<probability>${risk.probability}</probability>
		<exposition>${exposition}</exposition>
		<impacts>
	% for impact in risk.impacts:
			<impact>
				<name>${impact.name}</name>
				<description>${impact.description}</description>
			</impact>
	% endfor
		</impacts>
		<indicators>
	% for indicator in risk.indicators:
			<indicator>
				<name>${indicator.name}</name>
				<description>${indicator.description}</description>
			</indicator>
	% endfor
		</indicators>
		<strategies>
	% for strategy in risk.strategies:
			<strategy>
				<name>${strategy.name}</name>
				<description>${strategy.description}</description>
			</strategy>
	% endfor
		</strategies>
		<actions>
	% for action in risk.actions:
			<action>
				<name>${action.name}</name>
				<description>${action.description}</description>
			</action>
	% endfor
		</actions>
	</risk>
% endfor
</risks>